package org.execute.tool.excel转为viso文件;

import java.util.List;

public class Element {
    private String  id;
    private int    numberOfSpaces;
    private String content;
    private List<Element> subLevel;
    private Element parentLevel;
    public Element getParentLevel() {
        return parentLevel;
    }

    public void setParentLevel(Element parentLevel) {
        this.parentLevel = parentLevel;
    }

    public void setSubLevel(List<Element> subLevel) {
        this.subLevel = subLevel;
    }



    public void setContent(String content) {
        this.content = content;
    }

    public Element(String id, int numberOfSpaces, String content, List<Element> subLevel, Element parentLevel) {
        this.id = id;
        this.numberOfSpaces = numberOfSpaces;
        this.content = content;
        this.subLevel = subLevel;
        this.parentLevel = parentLevel;
    }

    public String getContent() {
        return content;
    }

    public List<Element> getSubLevel() {
        return subLevel;
    }

    public int getNumberOfSpaces() {
        return numberOfSpaces;
    }

    public void setNumberOfSpaces(int numberOfSpaces) {
        this.numberOfSpaces = numberOfSpaces;
    }

    public Element(String id, int numberOfSpaces, String content, List<Element> subLevel) {
        this.id = id;
        this.numberOfSpaces = numberOfSpaces;
        this.content = content;
        this.subLevel = subLevel;
    }

    @Override
    public String toString() {
        return "Element{" +
                "id='" + id + '\'' +
                ", content='" + content + '\'' +
                ", subLevel=" + subLevel +
                '}';
    }

    public String getcontent() {
        return content;
    }

    public void setcontent(String content) {
        this.content = content;
    }

    public List<Element> getsubLevel() {
        return subLevel;
    }

    public void setsubLevel(List<Element> subLevel) {
        this.subLevel = subLevel;
    }

    public Element() {

    }
    public Element(String id, String content, List<Element> subLevel) {
        this.id = id;
        this.content = content;
        this.subLevel = subLevel;
    }

    public Element(int numberOfSpaces, String content, List<Element> subLevel) {
        this.content = content;
        this.subLevel = subLevel;
        this.numberOfSpaces = numberOfSpaces;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
